package com.cgwx.springsecurity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cgwx.springsecurity.entity.SysLoginLog;
import com.cgwx.springsecurity.entity.SysLoginLogQueryVo;
import org.springframework.stereotype.Service;

/**
 * @author GaoWei
 * @Date 2023/10/23 - 15:24
 */

@Service
public interface SysLoginLogService {

//    记录登录信息
    void recordLoginLog(String username, Integer status, String ipaddr, String message);

//    条件分页查询登录日志
    IPage<SysLoginLog> selectPage(Page<SysLoginLog> pageParam, SysLoginLogQueryVo sysLoginLogQueryVo);
}
